<template>
  <div class="sort">
    <Foot :index="1"></Foot>
    <h1>i m sort</h1>
    <ul>
      <li class="list" v-for="item in list" :key="item.index">{{item.name}}</li>
    </ul>
  </div>
</template>

<script>
import Foot from '../../components/footer/footer'
export default {
  name: '',
  components: {Foot},
  data () {
    return {
      list: []
    }
  },
  created () {
  },
  mounted () {
    this.getData()
  },
  methods: {
    getData () {
      this.$axios.post('/api').then((res) => {
        if (res.status === 200) {
          this.list = res.data.articles
        }
      })
    }
  }
}
</script>

<style lang="scss" scoped>
  /*引入其他样式*/
  @import '../../assets/sass/helper/mixins';
  .sort{
    .list{
      line-height: 1rem;
      list-style: none;
      @include border(1px, #eee);
    }
  }
</style>
